import url from '@/tool/index.js'
export const info = (categoryid='',page=1) => { //
	return new Promise(resolve => {
		uni.request({
			url: url+'/api/article/index',
			data: {
				categoryid:categoryid,
				page:page
			},
			method: 'get',
			success: (res) => resolve(res.data),
		});
	})
}

export const infoDetail = (id) => { //
	return new Promise(resolve => {
		uni.request({
			url: url+'/api/article/detail',
			data: {
				articleid:id
			},
			method: 'get',
			success: (res) => resolve(res.data),
		});
	})
}

